<html>
<head><meta charset="utf-8"><title>How to prevent emitting an invalid suggestion on UI tests? · t-compiler/wg-diagnostics · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/147480-t-compiler/wg-diagnostics/index.html">t-compiler/wg-diagnostics</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/147480-t-compiler/wg-diagnostics/topic/How.20to.20prevent.20emitting.20an.20invalid.20suggestion.20on.20UI.20tests.3F.html">How to prevent emitting an invalid suggestion on UI tests?</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="232311877"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/147480-t-compiler/wg-diagnostics/topic/How%20to%20prevent%20emitting%20an%20invalid%20suggestion%20on%20UI%20tests%3F/near/232311877" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Yuki Okushi <a href="https://rust-lang.github.io/zulip_archive/stream/147480-t-compiler/wg-diagnostics/topic/How.20to.20prevent.20emitting.20an.20invalid.20suggestion.20on.20UI.20tests.3F.html#232311877">(Mar 29 2021 at 18:14)</a>:</h4>
<p>Working on <a href="https://github.com/rust-lang/rust/issues/83654">#83654</a>, I was thinking of how to prevent emitting an invalid suggestion on UI tests. I just added a normal comment for now but is there a better way to do so, something like <code>//~| NOT HELP: ...</code>?</p>



<a name="232324956"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/147480-t-compiler/wg-diagnostics/topic/How%20to%20prevent%20emitting%20an%20invalid%20suggestion%20on%20UI%20tests%3F/near/232324956" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oli <a href="https://rust-lang.github.io/zulip_archive/stream/147480-t-compiler/wg-diagnostics/topic/How.20to.20prevent.20emitting.20an.20invalid.20suggestion.20on.20UI.20tests.3F.html#232324956">(Mar 29 2021 at 19:47)</a>:</h4>
<p>A normal comment is the right thing imo. If you make it precise enough you are excluding the thing you want to prevent</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>